package com.molichuxing.gateway.bff.stock.services;

import java.util.List;
import java.util.Map;

import com.molichuxing.framework.dto.Paged;
import com.molichuxing.gateway.bff.stock.entity.response.StockRecordBaseVo;
import com.molichuxing.gateway.bff.stock.entity.response.StockRecordVo;

/**
 * 
 * @author liyg
 * 库存历史bff服务
 * 2019-08-26
 *
 */
public interface StockRecordBffService {

	/**
	 *获取库存记录列表
	 * @param map 参数
	 *key:vin        String    车架号 非必填
	 *key:licencePlate String    车牌号 非必填
	 *key:vehicleId  Integer 车型id 非必填
	 *key:type       Integer 出入库类型 非必填
	 *key:pageNum    Integer 当前页
	 *key:pageSize   Integer 每页显示条数
	 * @return
	 * @throws Exception 
	 */
	Paged<StockRecordVo> getStockRecordList(Map<String, Object> map) throws Exception;
	
	/**
	 * 根据车辆id获取库存历史流转记录
	 * @param carId
	 * @return
	 * @throws Exception 
	 */
	List<StockRecordBaseVo> getListByCarId(Integer carId) throws Exception;
}
